#ifndef __CONTROL_H
#define __CONTROL_H

#include "stm32g4xx_hal.h"
#include "Hardware.h"
#include "lcd.h"
#include "tim.h"
#include "i2c_hal.h"

struct Tick_typedef{
	uint32_t key;
	uint32_t lcd;
	uint32_t led;
	uint32_t eep;
	uint32_t adc;
	uint32_t pwm;
	
};
extern struct Tick_typedef tick;

struct Data_typedef{
	uint16_t keylongnum;
	
	uint32_t Frq_Set;
	uint8_t Duty;
	
};
extern struct Data_typedef data;

void power_init(void);

void LED_Proc(void);
void LCD_Proc(void);
void Key_Proc(void);
void PWM_Proc(void);

#endif
